package codeanticode.vision;

import processing.core.PApplet;
import com.googlecode.javacv.OpenCVFrameGrabber;

public class CameraGrabber extends BaseGrabber {
  public CameraGrabber(PApplet parent, int width, int height) {
    this(parent, width, height, 0);
  }
  
  public CameraGrabber(PApplet parent, int width, int height, int device) {
    super(parent);    
    grabber = new OpenCVFrameGrabber(device);
    grabber.setImageWidth(width);
    grabber.setImageHeight(height);
    firstFrame = true;
  }
}
